<template>
<section @click="clickCurrent('current')" @mousedown="clickCurrent('dragging')">
    <div :class="['custorm--modelbox', 'graphicsubline-show', (custormCurrent == custormIndex)?'drag active':'drag']">
        <div v-if="custormItemData.params.isshow == '2'" class="noshow" v-bind:style="{'background-image':`url(${getPath('noshow.png')})`}"></div>
        <div style="overflow: hidden;" v-bind:style="{'background-color':custormItemData.style.bgcolor}">
            <div class="es-line solid" v-if="custormItemData.style.display==1" v-bind:style="{'border-color':custormItemData.style.color,'margin':`${custormItemData.style.margincol}px ${custormItemData.style.marginrow}px`,'border-width':custormItemData.style.height+'px'}" ></div>
            <div class="es-line dotted" v-if="custormItemData.style.display==2" v-bind:style="{'border-color':custormItemData.style.color,'margin':`${custormItemData.style.margincol}px ${custormItemData.style.marginrow}px`,'border-width':custormItemData.style.height+'px'}" ></div>
            <div class="es-line dashed" v-if="custormItemData.style.display==3" v-bind:style="{'border-color':custormItemData.style.color,'margin':`${custormItemData.style.margincol}px ${custormItemData.style.marginrow}px`,'border-width':custormItemData.style.height+'px'}" ></div>
        </div>
        <div class="btn-edit-del" @click="delCurrent"><span class="btn-del iconfont icon icon-close"></span></div>
    </div>
</section>
</template>

<script>
import defaultConfig from './utils/showConfig'
export default {
  mixins: [defaultConfig.mixins],
  props: {
    defaultConfig: {
      type: Object,
      default: function() {
        return defaultConfig
      }
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.custorm--modelbox.graphicsubline-show {
    .es-line {
        margin: 10px 0;
        border-color: rgb(0, 0, 0);
    }
   .es-line.solid {
    border-top: 1px solid #000;
    }
    .es-line.dotted {
    border-top: 1px dotted #000;
    }
    .es-line.dashed {
        border-top: 1px dashed #000;
    }
}
</style>

